home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / Xaw / MenuButton.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  3KB  |  92 lines

  1. /*
  2.  * $Xorg: MenuButton.h,v 1.4 2001/02/09 02:03:44 xorgcvs Exp $
  3.  *
  4. Copyright 1989, 1994, 1998  The Open Group
  5.  
  6. Permission to use, copy, modify, distribute, and sell this software and its
  7. documentation for any purpose is hereby granted without fee, provided that
  8. the above copyright notice appear in all copies and that both that
  9. copyright notice and this permission notice appear in supporting
  10. documentation.
  11.  
  12. The above copyright notice and this permission notice shall be included in
  13. all copies or substantial portions of the Software.
  14.  
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  18. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  19. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  20. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  21.  
  22. Except as contained in this notice, the name of The Open Group shall not be
  23. used in advertising or otherwise to promote the sale, use or other dealings
  24. in this Software without prior written authorization from The Open Group.
  25.  */
  26. /* $XFree86: xc/lib/Xaw/MenuButton.h,v 1.5 2001/01/17 19:42:27 dawes Exp $ */
  27.  
  28. /***********************************************************************
  29.  *
  30.  * MenuButton Widget
  31.  *
  32.  ***********************************************************************/
  33.  
  34. /*
  35.  * MenuButton.h - Public Header file for MenuButton widget.
  36.  *
  37.  * This is the public header file for the Athena MenuButton widget.
  38.  * It is intended to provide an easy method of activating pulldown menus.
  39.  *
  40.  * Date:    May 2, 1989
  41.  *
  42.  * By:      Chris D. Peterson
  43.  *          MIT X Consortium 
  44.  *          kit@expo.lcs.mit.edu
  45.  */
  46.  
  47. #ifndef _XawMenuButton_h
  48. #define _XawMenuButton_h
  49.  
  50. #include <X11/Xaw/Command.h>
  51.  
  52. /* Resources:
  53.  
  54.  Name             Class        RepType        Default Value
  55.  ----             -----        -------        -------------
  56.  background         Background        Pixel        XtDefaultBackground
  57.  bitmap             Pixmap        Pixmap        None
  58.  border             BorderColor    Pixel        XtDefaultForeground
  59.  borderWidth         BorderWidth    Dimension    1
  60.  callback         Callback        Pointer        NULL
  61.  cursor             Cursor        Cursor        None
  62.  destroyCallback     Callback        Pointer        NULL
  63.  displayList         DisplayList    XawDisplayList*    NULL
  64.  font             Font        XFontStruct*    XtDefaultFont
  65.  foreground         Foreground        Pixel        XtDefaultForeground
  66.  height             Height        Dimension    text height
  67.  highlightThickness  Thickness        Dimension    2
  68.  insensitiveBorder   Insensitive    Pixmap        Gray
  69.  internalHeight         Height        Dimension    2
  70.  internalWidth         Width        Dimension    4
  71.  justify         Justify        XtJustify    XtJustifyCenter
  72.  label             Label        String        NULL
  73.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  74.  menuName            MenuName           String          "menu"
  75.  resize             Resize        Boolean        True
  76.  sensitive         Sensitive        Boolean        True
  77.  width             Width        Dimension    text width
  78.  x             Position        Position    0
  79.  y             Position        Position    0
  80.  
  81. */
  82.  
  83. #define XtNmenuName "menuName"
  84. #define XtCMenuName "MenuName"
  85.  
  86. extern WidgetClass     menuButtonWidgetClass;
  87.  
  88. typedef struct _MenuButtonClassRec   *MenuButtonWidgetClass;
  89. typedef struct _MenuButtonRec        *MenuButtonWidget;
  90.  
  91. #endif /* _XawMenuButton_h */
  92.